package com.shanzmoo.db.module.member.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.shanzmoo.db.module.member.entity.MemberMerchantEntity;
import com.shanzmoo.db.module.member.mapper.MemberMerchantMapper;
import com.shanzmoo.db.module.member.service.IMemberMerchantService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 商户会员信息 服务实现类
 * </p>
 *
 * @author fs
 * @since 2021-03-28
 */
@Service
public class MemberMerchantServiceImpl extends ServiceImpl<MemberMerchantMapper, MemberMerchantEntity> implements IMemberMerchantService {
    /**
     * 通过平台会员id获取商户会员
     *
     * @param id
     * @return
     */
    @Override
    public List<MemberMerchantEntity> getByPlatformMemberId(Integer id) {
        return lambdaQuery()
                .eq(MemberMerchantEntity::getMemberInfoId,id)
                .list();
    }
}
